home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / actionsc.h < prev    next >
C/C++ Source or Header  |  2008-10-31  |  1KB  |  40 lines

  1. /*
  2.  * Copyright 1995, 1999 by Paul Mattes.
  3.  *  Permission to use, copy, modify, and distribute this software and its
  4.  *  documentation for any purpose and without fee is hereby granted,
  5.  *  provided that the above copyright notice appear in all copies and that
  6.  *  both that copyright notice and this permission notice appear in
  7.  *  supporting documentation.
  8.  */
  9.  
  10. /*
  11.  *    actionsc.h
  12.  *        Global declarations for actions.c.
  13.  */
  14.  
  15. /* types of internal actions */
  16. enum iaction {
  17.     IA_STRING, IA_PASTE, IA_REDRAW,
  18.     IA_KEYPAD, IA_DEFAULT, IA_KEY,
  19.     IA_MACRO, IA_SCRIPT, IA_PEEK,
  20.     IA_TYPEAHEAD, IA_FT, IA_COMMAND, IA_KEYMAP
  21. };
  22. extern enum iaction ia_cause;
  23.  
  24. extern int              actioncount;
  25. extern XtActionsRec     actions[];
  26.  
  27. extern const char       *ia_name[];
  28.  
  29. #if defined(X3270_TRACE) /*[*/
  30. extern void action_debug(XtActionProc action, XEvent *event, String *params,
  31.     Cardinal *num_params);
  32. #else /*][*/
  33. #define action_debug 0 &&
  34. #endif /*]*/
  35. extern void action_internal(XtActionProc action, enum iaction cause,
  36.     const char *parm1, const char *parm2);
  37. extern const char *action_name(XtActionProc action);
  38. extern int check_usage(XtActionProc action, Cardinal nargs, Cardinal nargs_min,
  39.     Cardinal nargs_max);
  40.